<?php

namespace App\Modules\Apicrzs\Http\Controllers;

use App\Modules\Apicrzs\Services\System\UploadOssService;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class UploadController extends BaseApicrzsController
{
    public function __construct(UploadOssService $authService)
    {
//        $token =  \request()->header('token');
//        $user_info = CryptAES::decryptToken($token,'user_grzq');
//        $this->user_id = $user_info['data']['user_id'];
        $this->service = $authService;
    }


    // 昨天、月、年 统计
    public function getFileSign(Request $request): JsonResponse
    {
        $params = $request->all();
        $result = $this->service->UploadFileSign($params);

        return $this->sendApiSuccess($result, $this->service->getError());
    }

}
